#include "linked.h"

static int glob_id = 0;
linked_t* linked_create(ucontext_t* context, int priority)
{
    linked_t* list = malloc(sizeof(linked_t));
    CHECK_PTR(list);
    CHECK_ARG(context);
    list->context = context;
    list->next = NULL;
    list->prev = NULL;
    list->id = glob_id;
    list->priority = priority;

    glob_id+=1;

    return list;
}

